Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub: Fix SET_POSITION_TARGET_LOCAL_NED to be above origin #19995

Merged

Conversation

hendjoshsr71
Copy link
Member

@hendjoshsr71 hendjoshsr71 commented Feb 4, 2022

Fixes SET_POSITION_TARGET_LOCAL_NED to be above origin as is the standard . https://mavlink.io/en/messages/common.html#MAV_FRAME_LOCAL_NED

Also removes some redundant code to use functions that exist in AP_Location

ArduSub/control_auto.cpp Outdated Show resolved Hide resolved
@rmackay9
Copy link
Contributor

rmackay9 commented Feb 4, 2022

Yes, we replaced these "pv_" (Position Vector) methods a long time ago in Copter so it makes sense to do the same in Sub. You've tested it of course?

@hendjoshsr71 hendjoshsr71 force-pushed the pr/sub_fix_local_ned_above_ekf_origin branch from 2930ae4 to a3ea60c Compare February 5, 2022 05:36
@hendjoshsr71
Copy link
Member Author

Yes, we replaced these "pv_" (Position Vector) methods a long time ago in Copter so it makes sense to do the same in Sub. You've tested it of course?

Yes, still circles and points at ROIs.

@tridge tridge merged commit fc5ecfc into ArduPilot:master Feb 8, 2022
@hendjoshsr71 hendjoshsr71 deleted the pr/sub_fix_local_ned_above_ekf_origin branch February 8, 2022 01:14
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants